<%-- 
    Document   : add_fav_acc
    Created on : Sep 11, 2014, 10:43:39 AM
    Author     : hasnor
--%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><i>Favourite Account</i></title>
        <script type="text/javascript">
            function del(noAkaunFav)
            {
               if (confirm('Adakah anda pasti?')) {
                    frm = document.forms.form1;
                    frm.action = frm.action+'?deleteAkaunFav&noAkaunFav=' + noAkaunFav;
                    frm.submit();
               }                
            }

            function edit(noAkaunFav2) {
                frm2 = document.forms.form1;
                frm2.action = frm2.action + '?editFavAccForm&noAkaunFav=' + noAkaunFav2;
                frm2.submit();
            }
         
        </script>
    </head>
    <body>
        <s:form beanclass="th.stripes.action.DepositActionBean" class="niceform" name="form1">
            
            <s:errors/>
            <s:messages/>
            <div id="content">
                <div id="logo">
                    <span>
                        <img src="${pageContext.request.contextPath}/images/img/ribbon.png"/>               
                    </span>
                </div>
                <h3>Senarai <i>Favourite Account</i></h3>                                            
                <p>                    
                    
                    <display:table name="${actionBean.accFavList}" class="tablecloth" id="row" style="width:600px">
                        <display:column title="No" sortable="true">${row_rowNum}</display:column>
                        <display:column property="nicknameFav" title="Nama Samaran (Nickname)" />
                        <display:column property="noAkaunFav" title="No. Akaun " />
                        <display:column title="Kemaskini">
                        <div>
                              <img src="${pageContext.request.contextPath}/images/edit.gif" onclick="edit('${row.noAkaunFav}');" alt="kemaskini akaun" class="button_blockUI" style="cursor: pointer"/>
                              <img src="${pageContext.request.contextPath}/images/delete.gif" onclick="del('${row.noAkaunFav}');" alt="padam akaun" class="button_blockUI" style="cursor: pointer"/>
                        </div>
                        </display:column>
                    </display:table>
                </p>
                <p align="center">                                        
                        <s:submit name="addFavAccForm" value="Tambah Akaun" class="button green button_blockUI"/>                   
                </p>
            </div>
        </s:form>
    </body>
</html>
